]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Fix corner transition when slowed down
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Jan 2022 18:11:48 +0000 (19:11 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Jan 2022 18:18:15 +0000 (19:18 +0100)
Both ease() and CSS durations take the slow-down factor into account,
so the corners currently end up using the square of the factor in their
transition.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2118>

js/ui/panel.js

index dafba690a57075d293201cf919d15c02451d0d9e..ce1c493087a195434d556a757103b1e6be5f5020 100644 (file)
@@ -492,7 +492,8 @@ class PanelCorner extends St.DrawingArea {
         let cornerRadius = node.get_length("-panel-corner-radius");
         let borderWidth = node.get_length('-panel-corner-border-width');
 
-        const transitionDuration = node.get_transition_duration();
+        const transitionDuration =
+            node.get_transition_duration() / St.Settings.get().slow_down_factor;
         const opacity = node.get_double('-panel-corner-opacity');
 
         this.set_size(cornerRadius, borderWidth + cornerRadius);